﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RuoVea.GoFastdfs.Entity
{
    /// <summary>
    /// peers集群表实体类
    /// </summary>
    [Table("gpf_ruovead")]
    public class RuoveadEntiy
    {
        [Key, Required]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column("id"), DisplayName("主键")]
        public int Id { get; set; }

        //@NotBlank(message = "集群名称不能为空且在50字以内")
        //@Size(max = 50, message = "集群名称不能为空且在50字以内")
        [Required, MaxLength(50)]
        [Column("name"), DisplayName("集群名称"), StringLength(50)]
        public String Name { get; set; }

        //@Size(max =50, message = "组名称应在50字以内")
        [MaxLength(50)]
        [Column("group_name"), DisplayName("组名称"), StringLength(50)]
        public String GroupName { get; set; }
        //@NotBlank(message = "集群服务地址不能为空且在100字以内")
        //@Size(max = 100, message = "集群服务地址不能为空且在100字以内")
        [Required, MaxLength(100)]
        [Column("server_address"), DisplayName("集群服务地址"), StringLength(100)]
        public String ServerAddress { get; set; }

        //@Size(max = 100, message = "访问域名应在50字以内")
        [MaxLength(100)]
        [Column("show_address"), DisplayName("访问域名"), StringLength(100)]

        public String ShowAddress { get; set; }
        [Column("create_time"), DisplayName("创建时间")]
        public DateTime? createTime { get; set; }
        [Column("update_time"), DisplayName("更新时间")]
        public DateTime? updateTime { get; set; }
    }
}
